package com.lxk.pojo;

import java.io.Serializable;
import java.util.Date;

public class Chat implements Serializable {
    private Integer chatId;

    private Integer chatRole;

    private Integer wxUserId;

    private Date chatTime;

    private Integer chatStat;

    private String chatText;

    private static final long serialVersionUID = 1L;

    public Integer getChatId() {
        return chatId;
    }

    public void setChatId(Integer chatId) {
        this.chatId = chatId;
    }

    public Integer getChatRole() {
        return chatRole;
    }

    public void setChatRole(Integer chatRole) {
        this.chatRole = chatRole;
    }

    public Integer getWxUserId() {
        return wxUserId;
    }

    public void setWxUserId(Integer wxUserId) {
        this.wxUserId = wxUserId;
    }

    public Date getChatTime() {
        return chatTime;
    }

    public void setChatTime(Date chatTime) {
        this.chatTime = chatTime;
    }

    public Integer getChatStat() {
        return chatStat;
    }

    public void setChatStat(Integer chatStat) {
        this.chatStat = chatStat;
    }

    public String getChatText() {
        return chatText;
    }

    public void setChatText(String chatText) {
        this.chatText = chatText == null ? null : chatText.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", chatId=").append(chatId);
        sb.append(", chatRole=").append(chatRole);
        sb.append(", wxUserId=").append(wxUserId);
        sb.append(", chatTime=").append(chatTime);
        sb.append(", chatStat=").append(chatStat);
        sb.append(", chatText=").append(chatText);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}